﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace UML
{
    public abstract class Vehicles
    {
        private String name;
        public Vehicles()
        {
        }
        public String go()
        {
            return "";
        }

        public Boolean isEngineOn()
        {
            return false;
        }
        public void startEngine()
        {
        }
        public void stopEngine()
        {
        }
        public String getName()
        {
            return "";
        }

        interface ICargoTransport
        {
            void loadCargo();
        }
        public class Car : Vehicles
        {
            public Car()
            {
            }
            public String go()
            {
                return "";
            }
        }
        public class Person
        {
            public ArraySegment<Vehicles> m_Vehicles;
            public Person()
            {
            }
        }
        public void addVehice(Vehicles x)
        {
        }
        public class Truck : Vehicles, ICargoTransport
        {
            public Truck()
            {
            }
        }
        public override String go()
        {
            return "";
        }
        public void loadCargo()
        {
        }
    }
}
